#ifndef QCOMPILE_H
#define QCOMPILE_H

class QCompile: public wxDialog
{
public:
	QCompile(wxWindow *parent);
	~QCompile();

	static void ExecuteCompiles();
	static void StopCompiles();

	DECLARE_EVENT_TABLE();

private:
	static const int MAXUTILS = 32;
	void CreateLayout();
	void OnChoiceUtil(wxCommandEvent &event);
	void OnOK(wxCommandEvent &event);

	wxCheckBox *useUtilBox[MAXUTILS];
	wxChoice *currentUtil;
	wxTextCtrl *currentUtilParams;

	static void PrintText(const wxChar *text);
	static void PrintText(const wxString &text);

	static bool useUtils[MAXUTILS];
	static wxString utilParams[MAXUTILS];
	static int utilParamIndex;
	static int compileStage;
};

#endif //QCOMPILE_H
